home *** CD-ROM | disk | FTP | other *** search
- {$P1024,G1024}
- {$C+,U+}
- Program BugDemo; {Demonstrates a bug with Read and Readln}
- {When using standard i/o}
- {Try un-commenting the various lines in }
- { Hit_Return }
- {If you have any solutions, please post}
- {Them here, or call Met-Chem 203/281-7287}
- Var
- Answer : Char;
- Cycle : Integer;
- Procedure Hit_Return;
- Begin
- Write(' Hit <Return> to continue.');
- Read(Answer);
- { Repeat Read(Answer) until answer <> #13; }
- { Readln(Answer);}
- End;
- Begin
- For Cycle := 1 to 10 do begin
- Write(Cycle);
- Hit_Return;
- Writeln;
- end;
-
- End.
-
- d;
- Begin
- For Cycle := 1 to 10 do begin
- Write(Cycle);
- Hit_Return;
-